import request from '../request'
//虫情测报识别历史详情接口
export function sqcbHistoryInfoData(id:String) {
  return request.get('api/a/fmzk/devices/sqcbHistoryInfoData?id='+id)
}

//虫情测报虫害分析曲线接口/传感器指标分析曲线接口
export function historyCurveData(deviceKeysCode:String,startTime:String,endTime:String) {
  return request.get('api/a/fmzk/devices/historyCurveData?deviceKeysCode='+deviceKeysCode+"&startTime="+startTime+"&endTime="+endTime)
}

//无线阀控运行记录接口
export function wxfkHistoryListData(canopyId:String,dataTime:String) {
  return request.get('api/a/fmzk/devices/wxfkHistoryListData?canopyId='+canopyId+"&dataTime="+dataTime)
}
//根据农田获取传感器指标接口
export function deviceKeysList(canopyId:String) {
  return request.get('api/a/fmzk/devices/deviceKeysList?canopyId='+canopyId)
}


//虫情测报识别历史列表接口
export function sqcbHistoryListData(pageNo:Number,pageSize:Number,canopyId:String) {
  return request.post('api/a/fmzk/devices/sqcbHistoryListData',{pageNo,pageSize,canopyId})
}
//无线阀控设备控制接口  onOff 1:开，0:关
export function wxfkControlData(serialNumber:String,onOff:String) {
  return request.post('api/a/fmzk/devices/wxfkControlData',{serialNumber,onOff})
}